<template>
	<div class="blance">
		<view class="weui-form-preview list" v-for="i in orderlist">
            <view class="weui-form-preview__hd">
                <view class="weui-form-preview__item">
                    <view class="weui-form-preview__label">金额变化</view>
                    <view class="weui-form-preview__value_in-hd">{{i.type==1?'+':'-'}}{{i.price}}</view>
                </view>
            </view>
            <view class="weui-form-preview__bd">
                <view class="weui-form-preview__item">
                    <view class="weui-form-preview__label">类型</view>
                    <view class="weui-form-preview__value">{{i.type==1?'分销收益':'提现'}}</view>
                </view>
                <view class="weui-form-preview__item">
                    <view class="weui-form-preview__label">分销订单号</view>
                    <view class="weui-form-preview__value">{{i.orderno}}</view>
                </view>
                <view class="weui-form-preview__item">
                    <view class="weui-form-preview__label">时间</view>
                    <view class="weui-form-preview__value">{{i.create_at}}</view>
                </view>
                <view class="weui-form-preview__item">
                    <view class="weui-form-preview__label">交易后余额</view>
                    <view class="weui-form-preview__value">{{i.after}}</view>
                </view>
            </view>
            
        </view>
	</div>
</template>

<script>
	import { requests } from "../../../static/js/network"
	export default {
		data(){
			return{
				orderlist:[]
			}
		},
		onLoad(){
			let self = this
			
			
				
				requests({
					url: 'https://tp5.blver.cn/api/wechat/listPriceDetail',
					method: 'POST',
					header: {
						'content-type': 'application/json',
						'content-type': 'application/x-www-form-urlencoded' // 默认值
					},
					data: {
					

						session3rd: wx.getStorageSync('userinfo').session3rd
					},
					success: function(res) {
						console.log(res)
						self.orderlist = res.data.data

					}
				})
		}
	}
</script>

<style>
	.blance{background: #ccc;}
	.list{margin-bottom: 20rpx;}
</style>